package org.jeecg.modules.htxincailiao.order.domain.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.htxincailiao.order.constant.HTOrderInfoTypeEnum;
import org.jeecg.modules.htxincailiao.order.constant.HTOrderTypeEnum;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.List;

@Data
public class HTSubmitOrderBO {
    /**
     *  确定订单类型 0-直接购买 1-购物车
     */
    @NotNull(message = "订单确认类型不能为空")
    private HTOrderInfoTypeEnum orderInfoType;

    @NotNull(message = "订单类型不能为空")
    private HTOrderTypeEnum orderType;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    private String buyerId;

    /**
     * 腾讯账户ID
     */
    private String tencentAccountId;

    /**
     * 收货地址ID不能为空
     */
    @NotNull(message = "收货地址ID不能为空")
    private String addressId;

    /**
     *  确定订单类型 0-微信支付 1-支付宝支付
     */
    @NotNull(message = "支付类型不能为空")
    private Integer paymentType;

    /**
     * 商品ID
     */
    private String goodsId;

    /**
     * 资料ID
     */
    private String libraryId;

    /**
     * 资料ID
     */
    private String reportId;

    /**
     * 会议ID
     */
    private String meetingId;


    /**
     * 留言信息，按店铺
     */
    private List<HashMap<String, String>> leaveMessages;


    /**
     * 购买商品数量
     */
    @NotNull(message = "购买商品数量不能为空")
    private Integer quantity;

    /**接受资料邮箱*/
    @Excel(name = "接受资料邮箱", width = 15)
    @ApiModelProperty(value = "接受资料邮箱")
    private String receivedArchivesEmail;


}
